/**
 * Created by gongxun on 17/5/18.
 */


var KwxUserAgreementLayer = KwxSecondBase.extend({
    Panel_center: null,
    ctor: function () {
        this._super();
        this.loadSecondCCS("res/ccs/KwxUserAgreement.json");
        this.setTitleText("res/ccs/hall_second/text/text_yonghuxieyi.png");

        //关闭
        mo.seekWidgetByName(this.ccsNode, "Button_ok").addTouchEventListener(function(sender, type){
            if (mo.gameHelper.getIsTouchEndMenuClose(type)) {
                this.removeFromParent();
            }
        }, this);

        mo.gameHelper.setClippingLayout(mo.seekWidgetByName(this.ccsNode, "ListView"));
    },

    onEnter : function(){
        this._super();
        mo.soundHelper.playDialogOpen();
    }
});